package hydrap2p.speedlimiter;

import hydrap2p.download.Source;

public class SpeedLimiterLogicGlobalTransferQueue extends SpeedLimiterLogic {

	@Override
	protected void createQueues(Configuration configs) {
		queues.put("Upload Limit", new SingleFIFOQueue(configs.loadQueue("Upload Limit")));
		queues.put("Download Limit", new SingleFIFOQueue(configs.loadQueue("Download Limit")));
	}

	@Override
	protected String selectQueue(Source peer, boolean download, int amount) {
		if (download)
			return "Download Limit";
		else
			return "Upload Limit";
	}

}
